﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace zytech.common.baseform.edit
{
    public partial class Edit : zytech.common.baseform.BaseForm
    {
        public Edit()
        {
            InitializeComponent();
        }
        protected virtual void PrinttoolStripButton_Click(object sender, EventArgs e)
        {
            this.ue_Print();
        }
        /// <summary>
        /// 预览
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected virtual void PreViewtoolStripButton_Click(object sender, EventArgs e)
        {
            this.ue_Preview();
        }
        /// <summary>
        /// 导出
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected virtual void ExporttoolStripButton_Click(object sender, EventArgs e)
        {
            this.ue_Export();
        }
        protected override void ue_Add()
        {
            base.ue_Add();
            ue_BeforeAdd();
            ue_AfterAdd();
        }
        /// <summary>
        /// 增加
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected virtual void AddtoolStripButton_Click(object sender, EventArgs e)
        {
            this.ue_Add();
        }
        protected override void ue_Modify()
        {
            base.ue_Modify();
            ue_BeforeModify();
            ue_AfterModify();
        }
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected virtual void EdittoolStripButton_Click(object sender, EventArgs e)
        {
            ue_Modify();
        }
        protected override void ue_Delete()
        {
            base.ue_Delete();
            ue_BeforeDel();
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected virtual void DeltoolStripButton_Click(object sender, EventArgs e)
        {
            this.ue_Delete();
        }
        protected override void ue_Save()
        {
            base.ue_Save();
            ue_BeforeSave();
            ue_AfterSave();
        }
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected virtual void SavetoolStripButton_Click(object sender, EventArgs e)
        {
            this.ue_Save();
        }
        protected override void ue_Cancel()
        {
            base.ue_Cancel();
            ue_BeforeCancel();
        }
        /// <summary>
        /// 取消
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected virtual void CanceltoolStripButton_Click(object sender, EventArgs e)
        {
            this.ue_Cancel();
        }
        /// <summary>
        /// 退出
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected virtual void ExittoolStripButton_Click(object sender, EventArgs e)
        {

        }

    }
}
